package com.kd.eb.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kd.eb.mapper.EbUserMapper;
import com.kd.eb.model.EbUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginService {
    @Resource
    private EbUserMapper ebUserMapper;
    public EbUser login(EbUser ebUser){
        EbUser lgnUser = ebUserMapper.selectOne(new QueryWrapper<EbUser>()
                .eq("eu_user_name", ebUser.getEuUserName())
                .eq("eu_password", ebUser.getEuPassword()));
        return lgnUser;
    }
}
